<?php /* Smarty version Smarty-3.1.21-dev, created on 2015-10-20 11:03:00
         compiled from "H:\WebApplication\myconpany\sumi_mobile\application\views\user\supplylistdetail.html" */ ?>
<?php /*%%SmartyHeaderCode:160635620ca25a512b2-36353860%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '3ca22a77c02fa6ee252b5627f7b9ad873cfb930a' => 
    array (
      0 => 'H:\\WebApplication\\myconpany\\sumi_mobile\\application\\views\\user\\supplylistdetail.html',
      1 => 1445239441,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '160635620ca25a512b2-36353860',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.21-dev',
  'unifunc' => 'content_5620ca25a85598_04361230',
  'variables' => 
  array (
    'supplydata' => 0,
    '_suppliyStateMean' => 0,
    '_ServiceStateMean' => 0,
    '_currencyNoMean' => 0,
    '_currencyNoCfg' => 0,
    '_currencyMark' => 0,
    '_suppliyStateCfg' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5620ca25a85598_04361230')) {function content_5620ca25a85598_04361230($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ((@constant('APPLICATION_PATH')).("/application/views/header.html"), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>


<style>
    .spanmark{
        float: left;
        left: 63px;
        position: absolute;
        top: 14px;
        color: orange;
        z-index: 9999999;
    }
</style>
<?php echo '<script'; ?>
>
    $(function(){
        $(".upsupply").click(function(){

            var url  = "/user/supplyupdate/";
            var id   = $(this).attr("vid");
            var price= $("input[name=price]").val();
            var num= $("input[name=num]").val();

            $.ajax({
                url:url,
                data:{id:id,price:price,num:num},
                type:'POST',
                success:function(data){
                    var data = eval("("+data+")");
                    var code = data.code;
                    var msg = data.msg;
                    if(code == 8){
                        alert(msg);
                        return true;
                        window.location.reload();
                    }else{
                        alert(msg);
                        return false;
                    }
                },
                dataType:'text'
            });

        });
    })

<?php echo '</script'; ?>
>


<!--content stop-->
<section class="box-user">

    <div class="my_tmt"><?php echo $_smarty_tpl->tpl_vars['supplydata']->value['cate_name'];?>
 <?php echo $_smarty_tpl->tpl_vars['supplydata']->value['product_name'];?>
  <?php echo $_smarty_tpl->tpl_vars['supplydata']->value['brand_name'];?>
 <span class="fr gray"><?php echo $_smarty_tpl->tpl_vars['supplydata']->value['update_time'];?>
</span></div>

    <div class="my_tms">
        <p class="pt10p">发布公司：<?php echo $_smarty_tpl->tpl_vars['supplydata']->value['business_name'];?>
 </p>
        <p class="pt10p">状　　态：<span class="orange"><?php echo $_smarty_tpl->tpl_vars['_suppliyStateMean']->value[$_smarty_tpl->tpl_vars['supplydata']->value['status']];?>
 </span></p>
        <p class="pt10p">交易类型：<?php echo $_smarty_tpl->tpl_vars['_ServiceStateMean']->value[$_smarty_tpl->tpl_vars['supplydata']->value['service_id']];?>
 </p>
        <p class="pt10p">货币类型：<?php echo $_smarty_tpl->tpl_vars['_currencyNoMean']->value[$_smarty_tpl->tpl_vars['supplydata']->value['currency_id']];?>
 </p>
        <?php if ($_smarty_tpl->tpl_vars['supplydata']->value['currency_id']!=$_smarty_tpl->tpl_vars['_currencyNoCfg']->value['人民币']) {?>
        <p class="pt10p">结算方式：<?php echo $_smarty_tpl->tpl_vars['supplydata']->value['settlement'];?>
 </p>
        <?php }?>
        <p class="pt10p">交货地点：<?php echo $_smarty_tpl->tpl_vars['supplydata']->value['delivery_area'];?>
  </p>
        <p class="pt10p">交货时间：<?php echo $_smarty_tpl->tpl_vars['supplydata']->value['delivery_time'];?>
 </p>
        <p class="pt10p" style="position: relative;">单　　价：<input type="text" name="price" value="<?php echo $_smarty_tpl->tpl_vars['supplydata']->value['price'];?>
" class="my_tms_input"/>元/吨 <span class="spanmark"><?php echo $_smarty_tpl->tpl_vars['_currencyMark']->value[$_smarty_tpl->tpl_vars['supplydata']->value['currency_id']];?>
</span></p>
        <p class="pt10p">数　　量：<input type="text" name="num" value="<?php echo $_smarty_tpl->tpl_vars['supplydata']->value['num'];?>
" class="my_tms_input"/>吨</p>
    </div>


    <p class="my_tms_btn">
        <?php if ($_smarty_tpl->tpl_vars['supplydata']->value['status']==$_smarty_tpl->tpl_vars['_suppliyStateCfg']->value['up']||$_smarty_tpl->tpl_vars['supplydata']->value['status']==$_smarty_tpl->tpl_vars['_suppliyStateCfg']->value['cancel']||$_smarty_tpl->tpl_vars['supplydata']->value['status']==$_smarty_tpl->tpl_vars['_suppliyStateCfg']->value['down']) {?>
        <a class="upsupply" href="javascript:void(0)" vid="<?php echo $_smarty_tpl->tpl_vars['supplydata']->value['id'];?>
">更新</a>
        <?php }?>
        <?php if ($_smarty_tpl->tpl_vars['supplydata']->value['status']==$_smarty_tpl->tpl_vars['_suppliyStateCfg']->value['down']) {?>
        <a href="/user/supplyup/id/<?php echo $_smarty_tpl->tpl_vars['supplydata']->value['id'];?>
">上架</a>
        <?php }?>
        <?php if ($_smarty_tpl->tpl_vars['supplydata']->value['status']==$_smarty_tpl->tpl_vars['_suppliyStateCfg']->value['up']) {?>
        <a href="/user/supplydown/id/<?php echo $_smarty_tpl->tpl_vars['supplydata']->value['id'];?>
"  style="background: #999;">下架</a>
        <?php }?>
        <?php if ($_smarty_tpl->tpl_vars['supplydata']->value['status']==$_smarty_tpl->tpl_vars['_suppliyStateCfg']->value['audit']) {?>
        <a href="/user/supplycancel/id/<?php echo $_smarty_tpl->tpl_vars['supplydata']->value['id'];?>
" style="background: #999;">取消</a>
        <?php }?>

        <?php if ($_smarty_tpl->tpl_vars['supplydata']->value['status']==$_smarty_tpl->tpl_vars['_suppliyStateCfg']->value['cancel']) {?>
        <a href="/user/supplydel/id/<?php echo $_smarty_tpl->tpl_vars['supplydata']->value['id'];?>
" style="background: #999;">删除</a>
        <?php }?>



    </p>



</section>


<?php echo $_smarty_tpl->getSubTemplate ((@constant('APPLICATION_PATH')).("/application/views/common/footerlogin.html"), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>


<?php echo $_smarty_tpl->getSubTemplate ((@constant('APPLICATION_PATH')).("/application/views/footer.html"), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<?php }} ?>
